<template>
	<view class="p02 info">
		<view class="c9 t-c c6">提现金额（元）</view>
		<view class="f60 t-c wei">{{getSymbol(info.state).text}}{{info.money}}</view>
		<view class="f-x-bt mt50 f24">
			<view class="c9">提现时间</view>
			<view class="">{{info.createdAt}}</view>
		</view>
		<view class="f-x-bt mt10 f24">
			<view class="c9">订单号</view>
			<view class="">{{info.outTradeNo}}</view>
		</view>
		<view class="f-x-bt mt10 f24">
			<view class="c9">审核状态</view>
			<view class="">{{getSymbol(info.state).review}}</view>
		</view>
		<view class="f-x-bt mt10 f24">
			<view class="c9">手续费</view>
			<view class="">{{info.charge}}</view>
		</view>
		<view class="f-x-bt mt10 f24">
			<view class="c9">实际到账</view>
			<view class="">{{info.state == '3'?'0':info.actualMoney}}</view>
		</view>
	</view>
	
</template>

<script>
	export default {
		data() {
			return {
				info:{}
			}
		},
		onLoad(options) {
			this.util.setNT('提现详情')
			this.info = uni.getStorageSync('capitalInfo')
		},
		methods: {
			getSymbol(state){
				var text = ''
				var review = ''
				switch(state){
					case '1':
						text = '-'
						review = '待审核'
						break;
					case '2':
						text = '-'
						review = '通过'
						break;
					case '3':
						text = '+'
						review = '已拒绝'
						break;
					default:
						break;
				}
				return {text,review}
			},
		},
	}
</script>

<style scoped lang="scss">
	.info{
		height: 100vh;
		background: #FFFFFF;
		padding-top: 50rpx;
	}
</style>
